import tushare as ts
# 设置 token
token = 'c508869365fce05610e2cf264637f0473691e38fb80b3b21163bd150'
pro = ts.pro_api(token) # 初始化 pro 接口


# 获取格力电器日线行情数据

df_gldg = pro.daily(ts_code='000651.SZ', start_date='20090101',
                                        end_date='20201021')

print(df_gldg.head())

print(df_gldg.info())

print(df_gldg.axes)